package com.smart.buss.service.impl;

import com.smart.buss.dao.BussCodeMapper;
import com.smart.buss.service.BussCodeService;
import com.smart.buss.vo.BussCode;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class BussCodeServiceImpl implements BussCodeService
{

	@Resource
	private BussCodeMapper bussCodeMapper;

	@Override
	public BussCode queryObject(BussCode entity) throws Exception {
		return bussCodeMapper.queryObject(entity);
	}

	@Override
	public List<BussCode> queryList(BussCode entity) throws Exception {
		return bussCodeMapper.queryList(entity);
	}

	@Override
	public List<BussCode> queryListByPage(BussCode entity) throws Exception {
		return bussCodeMapper.queryListByPage(entity);
	}

	@Override
	public Integer queryCount(BussCode entity) throws Exception {
		return bussCodeMapper.queryCount(entity);
	}

	@Override
	public Integer insert(BussCode entity) throws Exception {
		return bussCodeMapper.insert(entity);
	}

	@Override
	public Integer update(BussCode entity) throws Exception {
		return bussCodeMapper.update(entity);
	}

	@Override
	public Integer delete(String id) throws Exception {
		return bussCodeMapper.delete(id);
	}
}
